package com.itlong.cloud.sdk.dao;

import com.itlong.cloud.POJO.PO.DeviceElevatorInfoPO;
import com.itlong.cloud.POJO.VO.sdk.old.SDKAppOldElevatorInfoVO;
import com.itlong.cloud.abstracts.IAbstractBaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <desc>
 *    旧版SDK_APP电梯设备数据访问接口.
 * </desc>
 *
 * @createDate 2017-11-08
 */
@Mapper
@Repository
public interface ISDKAppOldElevatorDao  extends IAbstractBaseDao<DeviceElevatorInfoPO> {

    /**
    * <desc>
    *    根据地址获取电梯设备唯一码列表.
    * </desc>
    *
    * @param buildNum 楼栋编号
     * @param unitNums 单元编号列表
     * @param projectId 项目编号
    * @return 设备唯一码列表
    * @author LewisLouis
    * @createDate 2017-11-16
    */
   List<SDKAppOldElevatorInfoVO> getDeviceUniquesByAddress(@Param("projectId")String projectId,
                                                           @Param("buildNum")String buildNum,
                                                           @Param("unitNums")List<String> unitNums);
}
